<template>
  <div class="home-container">
    <topnav></topnav>
    <shopHeader></shopHeader>
    <div class="main-container">
      <div class="shopTitle">
        <div class="shop-wrap">
          <img
            src="//gw.alicdn.com/imgextra//3b/01/TB1JJwvJEz1gK0jSZLeSuv9kVXa.jpg_110x10000q50.jpg_.webp"
            alt=""
            class="shopLogo"
          />
          <div class="shop-wrap-r">
            <span class="shop-wrap-title">好利来官方旗舰店</span>
            <span class="shop-wrap-type type-1">天猫</span>
          </div>
          <div class="shop-wrap-comment">
            <div class="shop-comment-item">
              <span class="comment-desc">宝贝描述</span>
              <span>4.8</span>
            </div>
            <div class="shop-comment-item">
              <span class="comment-desc">卖家服务</span>
              <span>4.8</span>
            </div>
            <div class="shop-comment-item">
              <span class="comment-desc">物流服务</span>
              <span>4.8</span>
            </div>
          </div>
        </div>
        <div class="button-wrap">
          <div class="button-box">
            <i class="iconfont"></i>
            <span>联系客服</span>
          </div>
          <div class="button-box">
            <i class="iconfont"></i>
            <span>进入店铺</span>
          </div>
        </div>
      </div>
      <div class="item-content-wrap">
        <div class="item-basic-content">
          <div class="item-basic-pic">
            <div class="main-pic"  @mouseover="handOver"  @mousemove="handMove" @mouseout="handOut">
              <img :src="picItemList[activePicIndex]" alt="" />
            </div>

            <ul class="basic-pic-gallery">
              <li
                class="pic-item"
                :class="activePicIndex == index ? 'activePic' : ''"
                v-for="(item, index) in picItemList"
                :key="index"
                @mouseenter="activePicIndex = index"
              >
                <img :src="item" alt="" />
              </li>
            </ul>
          </div>
          <div class="item-basic-info">
            <span class="item-basic-info-title"
              >好利来&LINE FRIENDS联名布朗莎莉夹心圣诞派对礼盒零食糕点甜品</span
            >
            <span class="item-basic-info-saleCount">月销&nbsp;&nbsp;9万+</span>
            <div class="item-sale-activity">
              <img
                src="https://img.alicdn.com/imgextra/i2/O1CN01BBAG3o1nuI6eZMdF1_!!6000000005149-2-tps-750-180.png"
                alt=""
              />
              <div class="item-sale-banner">
                <img
                  src="https://img.alicdn.com/imgextra/i2/O1CN012c9MxO1P42AzffhUZ_!!6000000001786-2-tps-496-72.png"
                  alt=""
                />
                <div class="item-sale-banner-r">
                  <span>现时折扣</span>
                  <span>品牌正品</span>
                </div>
              </div>
              <div class="price">
                <div class="price-l">
                  <span>￥</span>
                  <span class="number">31</span>
                </div>
                <div class="price-r">
                  <span>折后</span>
                  <span>￥</span>
                  <span class="number">27.9</span>
                </div>
              </div>
            </div>
            <ul class="item-content-text">
              <li class="item-content-text-li">优惠</li>
              <li class="item-content-text-li">保障</li>
              <li class="item-content-text-li">参数</li>
              <li class="item-content-text-li">资质</li>
            </ul>
            <div class="item-delivery">
              <div class="item-delivery-label">配送：</div>
              <div class="item-delivery-delivery">
                <span>北京 至 上海市松江区</span>
                <span>快递：免费</span>
                <span>现货：付款后48小时内发货</span>
              </div>
            </div>
            <div class="item-basic-content-sku">
              <div class="sku">
                <div class="item-sku-label">口味：</div>
                <div class="item-sku-wrapper">
                  <div
                    class="sku-detail"
                    v-for="(item, index) in skuItemList"
                    :key="index"
                    @click="skuClickIndex = index"
                    :class="[skuClickIndex == index ? 'activeSku' : '']"
                  >
                    <img :src="item.img" alt="" />
                    <span class="sku-detail-content">{{ item.title }}</span>
                  </div>
                </div>
              </div>
              <div class="sku">
                <div class="item-sku-label">净含量：</div>
                <div class="item-sku-wrapper">
                  <div class="sku-detail activeSku">
                    <span class="sku-detail-content">120g</span>
                  </div>
                </div>
              </div>
              <div class="sku">
                <div class="item-sku-label">数量：</div>
                <div class="item-sku-wrapper">
                  <el-input-number
                    v-model="skuNum"
                    :min="1"
                    :max="9999"
                    label="描述文字"
                    class="numberInput"
                  ></el-input-number>
                  <span class="sku-number-tip">有货(限购9999件)</span>
                </div>
              </div>
            </div>
            <div class="item-action-btn-wrapper">
              <div class="action-left-btn-box">
                <button type="button" class="btn-1">马上抢</button>
                <button type="button" class="btn-2">加入购物车</button>
              </div>
              <div class="action-right-action-box">
                <button type="button">
                  <i class="iconfont"></i>
                  收藏
                </button>
              </div>
            </div>
          </div>
        </div>
        <div class="item-detail-content">
          <ul class="item-detail-title-tab">
            <li
              class="tab-item"
              @click="detailTab = 0"
              :class="detailTab == 0 ? 'tab-active' : ''"
            >
              宝贝详情
            </li>
            <li
              class="tab-item"
              @click="detailTab = 1"
              :class="detailTab == 1 ? 'tab-active' : ''"
            >
              宝贝评价
            </li>
          </ul>
          <div class="item-detail-tab-content">
            <div
              class="item-attrs-wrapper"
              :style="detailTab == 0 ? 'display:block;' : 'display:none;'"
            >
              <div class="item-detail-attrs">
                <div class="attrs">品牌：holiland/好利来</div>
                <div class="attrs">系列：套餐半熟芝士</div>
                <div class="attrs">产地：中国大陆</div>
                <div class="attrs">生产许可证编号：SC12451011500913</div>
                <div class="attrs">厂名：成都好利来工贸有限公司</div>
                <div class="attrs">
                  厂址：成都市温江区成都海峡两岸科技开发园科北路99号
                </div>
                <div class="attrs">厂家联系方式：010-57098766</div>
                <div class="attrs">配料表：见包装</div>
                <div class="attrs">储藏方法：冷藏保存</div>
                <div class="attrs">保质期：5</div>
                <div class="attrs">食品添加剂：见包装</div>
              </div>
              <div class="item-detail-attrs">
                <img
                  src="//gw.alicdn.com/tfs/TB1d0h2qVYqK1RjSZLeXXbXppXa-1125-960.png?getAvatar=avatar"
                  alt=""
                />
              </div>
            </div>
            <div
              class="item-comment-wrapper"
              :style="detailTab == 1 ? 'display:block;' : 'display:none;'"
            >
              <div class="item-comment-wrapper-top">
                <ul class="item-wrapper-left">
                  <li
                    @click="itemTab = 0"
                    :class="itemTab == 0 ? 'li-active' : 'li-normal'"
                  >
                    全部
                  </li>
                  <li
                    @click="itemTab = 1"
                    :class="itemTab == 1 ? 'li-active' : 'li-normal'"
                  >
                    有图/视频
                  </li>
                  <li
                    @click="itemTab = 2"
                    :class="itemTab == 2 ? 'li-active' : 'li-normal'"
                  >
                    追评
                  </li>
                </ul>
                <div class="item-wrapper-right">
                  <span>默认排序</span>
                </div>
              </div>
              <div class="item-comment-wrapper-bottom">
                <div
                  class="comment-item-detail"
                  v-for="(item, index) in commentList"
                  :key="index"
                >
                  <div class="comment-top-avator">
                    <img :src="item.avator" alt="" class="avator" />
                    <div class="comment-userInfo">
                      <span class="comment-userName">{{ item.userName }}</span>
                      <span class="comment-meta">6天前 {{ item.meta }}</span>
                    </div>
                  </div>
                  <div class="comment-content">{{ item.content }}</div>
                  <div class="comment-img">
                    <img
                      :src="Img"
                      alt=""
                      v-for="(Img, index) in item.contentImg"
                      :key="index"
                      @click="PreviewImg(index,item)"
                      :class="item.imgIndex == index ? 'imgSelect' : ''"
                    />
                  </div>
                  <div class="comment-preview" v-if="item.previewImg">
                    <img :src="item.previewImg" alt="">
                  </div>
                  <div class="comment-footer">
                    <span>浏览18次</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <mainFooter class="footer"></mainFooter>
  </div>
</template>
<script>
import topnav from '@/components/topnav.vue'
import shopHeader from '@/components/header.vue'
import mainFooter from '@/components/footer.vue'
export default {
  data () {
    return {
      picItemList: [
        '//gw.alicdn.com/imgextra/i2/2455221099/O1CN01Cb4J4q1JzO0MCvQgO_!!2455221099-0-lubanu-s.jpg_Q75.jpg_.webp',
        '//gw.alicdn.com/imgextra/i2/2455221099/O1CN015PSscD1JzO4wJ6D1C_!!2455221099-2-lubanu-s.png_.webp',
        '//gw.alicdn.com/imgextra/i4/2455221099/O1CN018j6Iwf1JzO4UGKXO0_!!2455221099-0-lubanu-s.jpg_Q75.jpg_.webp',
        '//gw.alicdn.com/imgextra/i2/2455221099/O1CN01DYG79s1JzO4XDBjBA_!!2455221099-0-lubanu-s.jpg_Q75.jpg_.webp',
        '//gw.alicdn.com/imgextra/i1/2455221099/O1CN01ZGGJFN1JzO4StPNtx_!!2455221099-0-lubanu-s.jpg_Q75.jpg_.webp'
      ],
      activePicIndex: 0,
      skuItemList: [
        {
          title: '【圣诞派对 限定款】 四款样式/4种口味（共4枚/盒）',
          img: '//gw.alicdn.com/bao/uploaded/i4/2455221099/O1CN01BJsD7q1JzNzvVaN6q_!!2455221099.jpg_60x60q50.jpg_.webp'
        },
        {
          title: '布朗可可派(巧克力脆味)4枚/盒.',
          img: '//gw.alicdn.com/bao/uploaded/i4/2455221099/O1CN01BJsD7q1JzNzvVaN6q_!!2455221099.jpg_60x60q50.jpg_.webp'
        },
        {
          title: '莎莉茉茉派(茉莉芝士脆味)4枚/盒.',
          img: '//gw.alicdn.com/bao/uploaded/i4/2455221099/O1CN01BJsD7q1JzNzvVaN6q_!!2455221099.jpg_60x60q50.jpg_.webp'
        }
      ],
      skuClickIndex: null,
      skuNum: 0,
      detailTab: 0, // 详情或者评价
      itemTab: 0, // 评价里的tab
      commentList: [
        {
          avator: require('@/assets/images/user.png'),
          userName: 't***7',
          meta: '360g 抹茶味(5枚/盒) + 限定【30周年复古铁盒】1盒5味 (5枚/盒)',
          content: '此用户没有填写评价。',
          contentImg: [
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg')
          ],
          previewImg: null,
          imgIndex: null // 图片
        },
        {
          avator: require('@/assets/images/user.png'),
          userName: 't***7',
          meta: '360g 抹茶味(5枚/盒) + 限定【30周年复古铁盒】1盒5味 (5枚/盒)',
          content: '此用户没有填写评价。',
          contentImg: [
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg')
          ],
          previewImg: null,
          imgIndex: null // 图片
        },
        {
          avator: require('@/assets/images/user.png'),
          userName: 't***7',
          meta: '360g 抹茶味(5枚/盒) + 限定【30周年复古铁盒】1盒5味 (5枚/盒)',
          content:
            '一收到就尝了个甜柠檬柚夹心的半熟芝士，三十周年的这个纪念铁盒也很好看！这个柠檬夹心的酸酸的中和了芝士的甜哈哈哈真的好好吃好喜欢💕这次趁着搞活动还买了别的没吃过的味道！期待😚',
          contentImg: [
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg')
          ],
          previewImg: null,
          imgIndex: null // 图片
        },
        {
          avator: require('@/assets/images/user.png'),
          userName: 't***7',
          meta: '360g 抹茶味(5枚/盒) + 限定【30周年复古铁盒】1盒5味 (5枚/盒)',
          content:
            '冰袋送达的时候才刚化了1／3 ,就在泡沫盒和冰袋的作用下放了一上午，很棒，吃的时候依然是入口即化的口感。作为抹茶控和嗜甜者的我，表示很可。',
          contentImg: [
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg'),
            require('@/assets/images/goods.jpg')
          ],
          previewImg: null,
          imgIndex: null // 图片
        },
        {
          avator: require('@/assets/images/user.png'),
          userName: 't***9',
          meta: '360g 抹茶味(5枚/盒) + 限定【30周年复古铁盒】1盒5味 (5枚/盒)',
          content:
            '果然经典原味还是yyds，限定款口味伯爵红茶和甜柚柠檬比较推荐，荔浦芋泥的味道有点被掩盖住了，盒子包装很精美',
          contentImg: [],
          previewImg: null,
          imgIndex: null // 图片
        }
      ]
    }
  },
  created () {},
  computed: {},
  methods: {
    PreviewImg (index, item) {
      for (let i = 0; i < this.commentList.length; i++) {
        if (this.commentList[i] === item && this.commentList[i].imgIndex == null) {
          this.commentList[i].imgIndex = index
          this.commentList[i].previewImg = item.contentImg[index]
          break
        } else if (this.commentList[i] === item && this.commentList[i].imgIndex === index) {
          this.commentList[i].imgIndex = null
          this.commentList[i].previewImg = null
        }
      }
    },
    handMove () {

    },
    handOver () {

    },
    handOut () {

    }
  },
  components: {
    topnav,
    shopHeader,
    mainFooter
  }
}
</script>
<style lang="less" scoped>
.home-container {
  background: #e8e3e1;
  height: 100%;
  width: 100%;
  overflow: auto;
  position: relative;
  .main-container {
    .shopTitle {
      margin: 12px auto 0;
      height: 80px;
      border-radius: 40px;
      background-color: #fff;
      padding: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .shop-wrap {
      display: flex;

      .shopLogo {
        width: 56px;
        height: 56px;
        object-fit: contain;
      }
      .shop-wrap-r {
        padding: 4px 0;
        margin-left: 10px;
        position: relative;
        .shop-wrap-title {
          height: 22px;
          font-size: 18px;
          color: #000;
          letter-spacing: 0;
          line-height: 22px;
          white-space: nowrap;
          overflow: hidden;
          -o-text-overflow: ellipsis;
          text-overflow: ellipsis;
          max-width: 300px;
          font-weight: 600;
          display: block;
        }
        .shop-wrap-type {
          height: 37px;
          width: 16px;
          margin-top: 7px;
          border-radius: 8px;
          font-size: 12px;
          padding: 0 6px;
        }
        .type-1 {
          color: #fff;
          background-color: #ff0036;
        }
        .type-2 {
          color: #fff;
          background-color: #ff5f00;
        }
      }
      .shop-wrap-r::after {
        position: absolute;
        content: "";
        background-color: #eee;
        height: 26px;
        width: 1px;
        right: -20px;
        top: 24%;
      }
      .shop-wrap-comment {
        margin-left: 40px;
        display: flex;
        align-items: center;
        .shop-comment-item {
          text-align: center;
          .comment-desc {
            height: 14px;
            font-size: 14px;
            color: #7f7f7f;
            line-height: 14px;
            display: block;
          }
          span:nth-of-type(2) {
            height: 26px;
            font-size: 18px;
            color: #000;
            line-height: 26px;
            margin-top: 3px;
          }
        }
        .shop-comment-item:not(:first-child) {
          margin-left: 50px;
        }
      }
    }
    .button-wrap {
      .button-box {
        height: 36px;
        width: 102px;
        border: 1px solid #eee;
        -webkit-border-radius: 18px;
        -moz-border-radius: 18px;
        border-radius: 18px;
        background-color: #fff;
        margin-left: 13px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
        cursor: pointer;
        span {
          line-height: 34px;
          margin-left: 6px;
          font-family: PingFangSC-Medium;
          font-weight: 500;
          font-size: 14px;
          color: #000;
        }
      }
    }
    .item-content-wrap {
      background-color: #fff;
      margin: 12px auto 40px;
      width: 1192px;
      border-radius: 24px;
      box-sizing: border-box;

      .item-basic-content {
        display: flex;
        padding: 12px;
        .item-basic-pic {
          .main-pic {
            padding-top: 0px;
            max-height: 450px;
            max-width: 450px;

            img{
              max-height: 450px;
            max-width: 450px;
            border-radius: 12px;
            }
          }
        }
        .basic-pic-gallery {
          display: flex;
          margin-top: 12px;
          .pic-item {
            box-sizing: border-box;
            display: inline-block;
            height: 68px;
            width: 68px;
            border-radius: 6px;
            img {
              width: 100%;
              height: 100%;
              border-radius: 6px;
              cursor: pointer;
            }
          }
          .pic-item:not(:first-child) {
            margin-left: 9px;
          }
          .activePic {
            border: 1px solid #ff5000;
            padding: 2px;
          }
        }
        .item-basic-info {
          margin-left: 20px;
          width: 100%;
          .item-basic-info-title {
            font-weight: bold;
            font-size: 20px;
            display: block;
            line-height: 28px;
            color: #000;
            letter-spacing: 0;
            overflow: hidden;
            -o-text-overflow: ellipsis;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
          .item-basic-info-saleCount {
            margin-top: 8px;
            height: 14px;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.4);
            line-height: 14px;
            display: block;
          }
          .item-sale-activity {
            width: 423px;
            border-radius: 12px;
            height: 98px;
            position: relative;
            margin-top: 14px;
            img {
              position: absolute;
              z-index: 1;
              width: 100%;
              height: 100%;
              top: 0;
              left: 0;
              border-radius: 12px;
            }
            .item-sale-banner {
              line-height: 0;
              height: 40px;
              line-height: 40px;
              position: relative;
              text-align: center;
              z-index: 1;
              img {
                height: 22px;
                margin-left: 12px;
                width: unset;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
              }
              .item-sale-banner-r {
                color: rgb(255, 0, 54);
                font-size: 18px;
                line-height: 40px;
                position: absolute;
                right: 12px;
                span:last-child {
                  margin-left: 10px;
                }
              }
            }
            .price {
              position: relative;
              z-index: 1;
              height: 52px;
              background: #fff;
              -webkit-border-radius: 8px;
              -moz-border-radius: 8px;
              border-radius: 8px;
              margin: 2px 4px 0;
              padding-left: 8px;
              color: rgb(255, 79, 0);
              display: flex;
              align-items: center;
              .price-l {
                display: flex;
                align-items: baseline;
                .number {
                  font-size: 28px;
                  line-height: 28px;
                }
              }
              .price-r {
                display: flex;
                align-items: baseline;
                background-color: rgb(255, 80, 0);
                color: rgb(255, 255, 255);
                border-radius: 20px;
                padding: 0 10px;
                margin-left: 8px;
                float: left;
                span:nth-of-type(1) {
                  margin-left: 2px;
                  font-size: 15px;
                }
                span:nth-of-type(2) {
                  display: inline-block;
                  vertical-align: baseline;
                  margin-right: 2px;
                  font-size: 16px;
                  line-height: 24px;
                }
                .number {
                  font-size: 18px;
                  line-height: 30px;
                }
              }

              span:nth-of-type(1) {
                display: inline-block;
                vertical-align: baseline;
                margin-right: 2px;
                font-size: 16px;
                line-height: 24px;
              }
            }
          }
          .item-content-text {
            box-sizing: border-box;
            border-radius: 21px;
            padding: 11px 20px;
            border: 1px solid #eee;
            cursor: pointer;
            margin-top: 17px;
            width: max-content;
            transition: color 0.1s, background-color 0.1s;
            .item-content-text-li {
              display: inline-block;
              font-weight: 500;
              font-size: 14px;
              letter-spacing: 0;
              line-height: 14px;
              vertical-align: middle;
              position: relative;
            }
            .item-content-text-li:not(:last-child)::after {
              position: absolute;
              right: -13px;
              content: "";
              height: 15px;
              width: 1px;
              background-color: #eee;
              top: 50%;
              transform: translateY(-50%);
            }
            .item-content-text-li:not(:first-child) {
              margin-left: 26px;
            }
            &:hover {
              background-color: #f5f5f5;
              border-color: #f5f5f5;
              color: #ff5000;
            }
          }
          .item-delivery {
            margin-top: 22px;
            .item-delivery-label {
              display: inline-block;
              width: 75px;
              font-family: PingFang SC;
              color: #7f7f7f;
            }
            .item-delivery-delivery {
              display: inline-block;
              font-family: PingFang SC;
              vertical-align: top;
              line-height: 22px;
              span {
                display: block;
                font-size: 14px;
                line-height: 22px;
              }
            }
          }
          .sku {
            margin-top: 15px;
            display: flex;
            .item-sku-label {
              display: inline-block;
              width: 75px;
              line-height: 36px;
              font-family: PingFang SC;
              color: #7f7f7f;
            }
            .item-sku-wrapper {
              display: flex;
              flex-wrap: wrap;
              width: calc(100% - 75px);
              .sku-detail {
                max-width: calc(50% - 10px);
                height: 36px;
                vertical-align: top;
                margin-bottom: 9px;
                margin-right: 4.5px;
                margin-left: 4.5px;
                padding: 2px;
                border-radius: 6px;
                background-color: rgba(0, 0, 0, 0.06);
                border: 1px solid transparent;
                cursor: pointer;
                text-align: center;
                display: flex;
                align-items: center;
                img {
                  width: 30px;
                  height: 30px;
                }
                .sku-detail-content {
                  padding-left: 4px;
                  color: #333;
                  text-overflow: ellipsis;
                  padding: 0 8px;
                  padding-left: 8px;
                  white-space: nowrap;
                  overflow: hidden;
                }
                &:hover {
                  background-color: #e0e0e0;
                }
              }
              .activeSku {
                border-color: #ff5000;
                background-color: #fff7f3;
                color: #ff5000;
                .sku-detail-content {
                  color: #ff5000;
                }
                &:hover {
                  background-color: #fff7f3;
                }
              }
              .numberInput {
                width: 125px;
              }
              .sku-number-tip {
                margin-left: 5px;
                font-size: 14px;
                line-height: 36px;
                color: #999;
              }
            }
          }
          .item-action-btn-wrapper {
            display: flex;
            margin-top: 22px;
            .action-left-btn-box {
              position: relative;
              button {
                height: 48px;
                line-height: 22px;
                text-align: center;
                border-color: transparent;
                color: #fff;
                font-weight: bold;
                cursor: pointer;
              }
              .btn-1 {
                border-top-left-radius: 34px;
                border-bottom-left-radius: 34px;
                padding: 0 36px;
                background: linear-gradient(
                  90deg,
                  rgb(255, 100, 34),
                  rgb(255, 0, 64)
                );
                box-shadow: rgba(255, 100, 34, 0.2) 0px 9px 13px 0px;
                vertical-align: top;
              }
              .btn-2 {
                border-top-right-radius: 34px;
                border-bottom-right-radius: 34px;
                padding: 0 36px;
                background: linear-gradient(
                  90deg,
                  rgb(255, 203, 0),
                  rgb(255, 148, 2)
                );
                box-shadow: rgba(255, 203, 0, 0.2) 0px 9px 13px 0px;
              }
              &::after {
                content: "";
                height: 18px;
                width: 1px;
                background-color: #eee;
                position: absolute;
                top: 50%;
                right: -19px;
                transform: translateY(-50%);
              }
            }
            .action-right-action-box {
              margin: 0 38px;
              display: inline-block;
              button {
                height: 30px;
                padding: 0 12px;
                -webkit-border-radius: 20px;
                -moz-border-radius: 20px;
                border-radius: 20px;
                background: transparent;
                margin-top: 9px;
                cursor: pointer;
                border-color: transparent;
                font-size: 14px;
                font-weight: normal;
                color: rgb(102, 102, 102);
                &:hover {
                  background: rgba(0, 0, 0, 0.06);
                  transition: background-color 0.2s;
                }
              }
            }
          }
        }
      }
      .item-detail-content {
        margin-top: 22px;
        padding-bottom: 12px;
        .item-detail-title-tab {
          display: flex;
          padding: 22px 18px;
          border-bottom: 1px solid hsla(0, 0%, 59.2%, 0.1);
          .tab-item {
            font-weight: 500;
            font-size: 18px;
            color: #000;
            letter-spacing: 0;
            cursor: pointer;
          }
          .tab-item:first-child {
            margin-right: 24px;
          }
          .tab-active {
            position: relative;
            &:after {
              content: "";
              height: 3px;
              width: 13px;
              background-color: #ff5000;
              position: absolute;
              border-radius: 1.5px;
              left: 50%;
              top: 45px;
              transform: translateX(-50%);
            }
          }
        }
        .item-detail-tab-content {
          margin-top: 22px;
          .item-attrs-wrapper {
            width: 790px;
            // min-height: 400px;
            margin: 40px auto 0;
            .item-detail-attrs {
              width: 100%;
              display: flex;
              flex-wrap: wrap;
              .attrs {
                width: 33.3%;
                text-overflow: ellipsis;
                overflow: hidden;
                color: #4e4e4e;
                line-height: 16px;
                white-space: nowrap;
                margin-bottom: 14px;
                text-align: left;
              }
              img {
                width: 100%;
              }
            }
          }
          .item-comment-wrapper {
            padding: 0 18px;
            .item-comment-wrapper-top {
              display: flex;
              justify-content: space-between;
              .item-wrapper-left {
                display: flex;
                .li-normal {
                  height: 36px;
                  line-height: 36px;
                  padding: 0 16px;
                  cursor: pointer;
                  border-radius: 18px;
                  background-color: #f6f6f6;
                  transition: all 0.1s linear;
                  &:hover {
                    background-color: #e0e0e0;
                  }
                }
                li:not(:last-child) {
                  margin-right: 12px;
                }
                .li-active {
                  height: 36px;
                  line-height: 36px;
                  padding: 0 16px;
                  cursor: pointer;
                  border-radius: 18px;
                  transition: all 0.1s linear;
                  background-color: #ff5000;
                  color: #fff;
                }
              }
              .item-wrapper-right {
                height: 36px;
                line-height: 36px;
                padding: 0 16px;
                cursor: pointer;
                border-radius: 18px;
                background-color: #f6f6f6;
              }
            }
            .item-comment-wrapper-bottom {
              margin-top: 20px;
              .comment-item-detail {
                padding-bottom: 18px;
                margin-bottom: 18px;
                border-bottom: 1px solid rgba(151, 151, 151, 0.1);
                .comment-top-avator {
                  display: flex;
                  .avator {
                    height: 36px;
                    width: 36px;
                    border-radius: 18px;
                    line-height: 39px;
                  }
                  .comment-userInfo {
                    margin-left: 5px;
                    span {
                      display: block;
                    }
                    .comment-userName {
                      font-weight: 700;
                      font-size: 17px;
                      color: #000;
                      line-height: 22px;
                    }
                    .comment-meta {
                      font-size: 14px;
                      color: #7a7a7a;
                      line-height: 18px;
                    }
                  }
                }
                .comment-content {
                  margin-top: 15px;
                  font-size: 16px;
                  color: #000;
                  line-height: 22px;
                }
                .comment-img {
                  margin-top: 7px;
                  border: 12px;

                  img {
                    height: 100px;
                    width: 100px;
                    margin-right: 4px;
                    cursor: pointer;
                    border-radius: 12px;
                    box-sizing: border-box;
                  }
                  .imgSelect {
                    border: 1px solid #ff5000;
                    padding: 4px;
                    border-radius: 6px;
                  }
                }
                .comment-preview {
                  height: 412px;
                  border-radius: 12px;
                  border: 1px solid #ccc;
                  margin: 12px 0;
                  transition: max-height 0.3s, opacity 0.3s;
                  max-width: 412px;
                  max-height: 999px;
                  opacity: 1;
                  overflow: hidden;
                }
                .comment-footer {
                  margin-top: 14px;
                  font-size: 13px;
                  line-height: 18px;
                  color: #7a7a7a;
                }
              }
            }
          }
        }
      }
    }
  }
  .footer {
    // position: fixed;
    // bottom: 0;
    width: 100%;
  }
}
</style>
